package com.echat.business.book.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 友情链接表
 * </p>
 *
 * @author chentl123
 * @since 2019-06-06
 */
@TableName("echo_business_friend_link")
public class FriendLink extends Model<FriendLink> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 友情链接-网站名称
     */
    private String title;
    /**
     * 传送门（地址）
     */
    private String link;
    /**
     * 展示图标地址
     */
    private String img;
    /**
     * 创建人
     */
    private Integer createby;
    /**
     * 创建日期
     */
    private Date createTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public Integer getCreateby() {
        return createby;
    }

    public void setCreateby(Integer createby) {
        this.createby = createby;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "FriendLink{" +
        ", id=" + id +
        ", title=" + title +
        ", link=" + link +
        ", img=" + img +
        ", createby=" + createby +
        ", createTime=" + createTime +
        "}";
    }
}
